//
//  AdvertisementView.h
//  TestTableView
//
//  Created by Hunk on 11-12-22.
//  Copyright (c) 2011年 __MyCompanyName__. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "PageControlView.h"

@protocol AdvertisementViewDelegate;
@interface AdvertisementView : UIView <UIScrollViewDelegate>
{
    @private
    NSMutableArray                *advertisementArray;
    
    UIScrollView                  *_scrollView;
    
    NSTimer                       *_timer;
    
    id<AdvertisementViewDelegate> _delegate;
}
@property (nonatomic, assign) id<AdvertisementViewDelegate> delegate;

- (void)setAdvertisementData:(NSArray *)dataArray;

@end

@protocol AdvertisementViewDelegate <NSObject>

- (void)advertisementView:(AdvertisementView *)advertisementView currentAdvertisement:(NSInteger)index;

@optional
- (void)advertisementView:(AdvertisementView *)advertisementView didSelectAdvertisementAtIndex:(NSInteger)index;

@end
